# dict1 = {
#     'name': '刘千琪',
#     'age': 18
# }
#
# iterator = dict1.__iter__()
# print(iterator)
# iterator = iterator.__next__()
# print(iterator)
#
#
# def a(stop):
#
#
# # num = 0
# # while num < stop:
# #     return
#
# lit1 = [43, '悟空', 'Ture', 56, '八戒', 87.5, 98]
#
#
# def get_num(lit1):
#     for num in lit1:
#         if type(num) == int or type(num) == float:
#             yield num
#
#
# for num in get_num(lit1):
#     print(num)
#
# lit1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# for x, i in enumerate(lit1):
#     if i % 2 != 0:
#         lit1[x] = None
# print(lit1)
#
# for x, i in enumerate(lit1):
#     if i % 2 == 0:
#         lit1[x] += 1
# print(lit1)

list_map = [
    [2, 0, 0, 2],
    [3, 0, 0, 3],
    [5, 1, 2, 9],
    [7, 4, 8, 2]
]

list1 = []
for i in zip(*list_map):
    list1.append(list(i))
print(list1)

list01 = ["悟空", "八戒", "白骨精"]
list02 = [28, 25, 36]

dict01 = {}
for key, values in zip(list01, list02):
    dict01[key] = values
print(dict01)

list03 = [43, "a", 5, "Ture", 6, 7, 89, 9, "b"]
a = (item for item in list03 if type(item) == str)
b = (item ** 2 for item in list03 if type(item) == int)

for x in a:
    print(x)
for y in b:
    print(y)
